﻿using System.Collections.Generic;
using FluentValidation;

namespace Jinjia.Approve.Model.Input
{
    public class JJFlowCommentCreateInput
    {
        public string modular_key { get; set; }
        public string biz_order_id { get; set; }
        public int is_append { get; set; }
        public string comment { get; set; }
        public List<FileVM> files { get; set; }
    }

    public class JJFlowCommentCreateInputValidator : AbstractValidator<JJFlowCommentCreateInput>
    {
        public JJFlowCommentCreateInputValidator()
        {
            RuleFor(x => x.modular_key).NotNull().WithMessage("modular_key不能为空").NotEmpty().WithMessage("modular_key不能为空");
            RuleFor(x => x.biz_order_id).NotNull().WithMessage("biz_order_id不能为空").NotEmpty().WithMessage("biz_order_id不能为空");
        }
    }
}